form = @GForm(
                        formItems = {
                                <#list>@GFormItem(<#include "formItem/formItem.ftl"/>),
                                </#list>
                        },
                        <#if (form.okActionName)>okButton = @GButton(name = "确认", action = ButtonAction.CONFIRM_AND_CLOSE, actionName = "${form.okActionName}"),</#if>
                        <#else>okButton = @GButton(enable = false),</#else>
                        cancelButton = @GButton(name = "取消", action = ButtonAction.CLOSE_DIALOG)
                )